Repository navigation
feat(fleet-queue): SEL-06 lane fairness policy interface (#9496) - #10677
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 56 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Implements SEL-06 (#9496, design parent #9204, program #9196): the lane fairness policy interface in
pkgs/fleet/crates/fleet-queue/src/work/selection.rs. Gate verified fresh: design PR #9225 is merged; the slice's other named blocker #8097 is closed.What lands
A pure, persistence-free model module (following the
work/per-slice pattern), with no change to live selection:LaneFairnessPolicy— the interface: given the comparator-ordered eligible candidates and the per-lane service history, return the service order as a permutation of the input. The module documents the contract every policy must keep, straight from design(pm-orchestration): queue selection & bounded exploration (weighted sampling, density correction) #9204's "Fairness is separate": urgent order is exact (fairness never reorders ahead of urgent work), no eligibility bypass (input is Queue/lane design rules: no by-id blocking by default, optional platform selector, triage separate from fixes #8097's already-filtered eligible set — requirements AND claim-time filter; claimer identity is recorded, not a filter), no intrinsic-score change, within-lane order preserved.FairCandidate/FairnessState— the candidate and service-history snapshot types.NoFairness— the null policy representing today's live behaviour (comparator order unchanged), the baseline for comparison.BoundedShareFairness— the model policy: urgent candidates first in exact input order; non-urgent service opportunities allocated round-robin across lanes by fewest recorded services (history + this round), lane id as tie-break — the model-based fairness bound from the slice text.Tests
Per the family rule, the oracle was listed by exact name first (
-- --list: exactly one match), then run:pmo_selection_fairness_preserves_urgent_order— passes: urgent subsequence identical to input, no non-urgent candidate ahead of any urgent one, result is a permutation.fleet-queuelib suite: 325/325 pass.cargo fmtclean.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.